package com.ruoyi.core.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 公众号带参二维码业务对象 f_wx_qr_code
 *
 * @author ztx
 * @date 2023-03-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class WxQrCodeBo extends BaseEntity {

    /**
     * ID
     */
    private Long id;

    /**
     * appid
     */
    @NotBlank(message = "appid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appid;

    /**
     * 是否为临时二维码
     */
    private String isTemp;

    /**
     * 场景值ID
     */
    @NotBlank(message = "场景值ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sceneStr;

    /**
     * 二维码ticket
     */
    private String ticket;

    /**
     * 二维码图片解析后的地址
     */
    private String url;

    /**
     * 该二维码失效时间
     */
    private Date expireTime;

    /**
     * 用户openid
     */
    @NotBlank(message = "用户openid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String openid;

    /**
     * 备注
     */
    private String remark;

    /**
     * 媒体id
     */
    @NotBlank(message = "媒体id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String mediaId;

    /**
     * 分享次数
     */
    private String shareCount;

    /**
     * 媒体url
     */
    private String mediaUrl;


}
